<% if @user %>
	<nav id="nav">
		<div class="ym-wrapper">
			<div class="ym-hlist">
				<ul>
  					<li><%= link_to '/', :controller => :events, :action => :index %></li>
  					<li><%= link_to 'Bauarbeiter', :controller => :workers, :action => :index %></li>
					<li><%= link_to 'Routen', :controller => :routes, :action => :index %></li>
					<li><%= link_to 'Wandteile', :controller => :walls, :action => :index %></li>
					<li><%= link_to 'Umlenker', :controller => :chains, :action => :index %></li>
					<li><%= link_to 'Grade', :controller => :grades, :action => :index %></li>
                                        <% if @user.is_schorsch? %>
					<li><%= link_to 'Notitz', :controller => :notes, :action => :index %></li>
                                        <% end %>
					<li><%= link_to 'Masterplan', :controller => :masterplans, :action => :index %></li>
  					<li><%= link_to 'Drucken', :controller => :printer, :action => :index %></li>
				</ul>
				<% if @user %>
					<%= form_tag logout_path, :class => "ym-searchform" do %>
						<%= @user.name %>
						<%= submit_tag :Logout, :class => "ym-searchbutton" %>  
					<% end %>
				<% end %>
			</div>
		</div>
	</nav>
<% end %>
